﻿﻿﻿<script type="text/javascript">
/*relativePathPrefix : 相对路径前缀 不同文件夹下的前缀各不相同*/

/**
 * 获取分类下  从startindex开始 一共取count条数据  取的是小图片
 */
function getCatalogList(relativePathPrefix,id,startindex,count,callback){
	var url = relativePathPrefix+"catalog.do?f_catalog_id="+id+"&pageNo="+startindex+"&pageSize="+count;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取分类下第一条数据的大图片
 */
function getCatalogBig(relativePathPrefix,id,callback) {
	var url = relativePathPrefix+"catalog_big.do?f_catalog_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取分类下从startindex开始  一共取count条内容数据图片为剧照
 */
function getCatalogContentList(relativePathPrefix,id,startindex,count,f_cp_cprid,callback){
	var url = relativePathPrefix+"catalog_list.do?f_catalog_id="+id+"&pageNo="+startindex+"&pageSize="+count+"&f_cp_cprid="+f_cp_cprid+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取分类下总共有几条数据
 */
function getCatalogListCount(relativePathPrefix,id,f_cp_cprid,callback){
	var url = relativePathPrefix+"catalog_count.do?f_catalog_id="+id+"&f_cp_cprid="+f_cp_cprid+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * getCatalogContentList version 2  paramJson参数定义为json对象，。
 *	需要参数 ： paramJson.f_catalog_id、paramJson.startindex、paramJson.pageSize、paramJson.f_cp_cprid、paramJson.f_cc_actors、paramJson.f_catalog_parentid,paramJson.f_cc_director
 */
function getCatalogContentListV2(relativePathPrefix,paramJson,callback){
	if(paramJson.f_cc_director == undefined){
		paramJson.f_cc_director = "";
	}
	if(paramJson.f_cc_searchname == undefined){
		paramJson.f_cc_searchname = "";
	}
	var url = relativePathPrefix+"catalog_list.do?f_catalog_id="+ paramJson.f_catalog_id+"&pageNo="+paramJson.startindex+"&pageSize="
			+paramJson.pageSize+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_cc_actors="+paramJson.f_cc_actors+"&f_catalog_parentid="
			+paramJson.f_catalog_parentid+"&sort_column="+paramJson.sort_column
			+"&f_cc_actorslist="+paramJson.f_cc_actorslist
			+"&f_cc_type="+paramJson.f_cc_type+"&f_cc_director="+paramJson.f_cc_director+"&f_cc_searchname="+paramJson.f_cc_searchname;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * getCatalogListCount version 2  paramJson参数定义为json对象，。
 * 需要参数 ： paramJson.f_catalog_id、paramJson.f_cp_cprid、paramJson.f_cc_actors、paramJson.f_catalog_parentid,paramJson.f_cc_director
 */
function getCatalogListCountV2(relativePathPrefix,paramJson,callback){
	if(paramJson.f_cc_director == undefined){
		paramJson.f_cc_director = "";
	}
	if(paramJson.f_cc_searchname == undefined){
		paramJson.f_cc_searchname = "";
	}
	var url = relativePathPrefix+"catalog_count.do?f_catalog_id="+paramJson.f_catalog_id+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_cc_actors="+paramJson.f_cc_actors+"&f_catalog_parentid="+paramJson.f_catalog_parentid+"&f_cc_director="+paramJson.f_cc_director+"&f_cc_searchname="+paramJson.f_cc_searchname;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}


/**
 * 根据父级catalogId得到父级目录下的一级子目录信息(注意只能拿到下一级，不可多级，多级需要多次查询)
 */
function catalog_catalogInfoListBycatalogId(relativePathPrefix,id,startindex,count,callback){
	var url = relativePathPrefix+"catalog_info_list_by_parent_catalogid.do?f_catalog_id="+id+"&pageNo="+startindex+"&pageSize="+count;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据父级catalogId得到父级目录下的一级子目录总数
 */
function catalog_catalogInfoListBycatalogIdCount(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"catalog_info_list_by_parent_catalogid_count.do?f_catalog_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据子目录catalogId得到父级目录信息
 */
function getParentCatalogByContentId(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"catalog_parent_by_content_id.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据内容ID 获取内容详情
 * 2018-08-20:dpf:废弃不再维护使用（请转用getContentManyImg方法）
 */
function getContent(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"content.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 2018-08-20:dpf:根据内容ID及内容图片类型 获取内容详情及多张对应图片
 */
function getContentManyImg(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"content.do?f_cc_id="+paramJson.f_cc_id+"&f_cc_cprid="+paramJson.f_cc_cprid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据电视剧ID 获取电视剧一共有几集
 */
function getSeriesCount(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"selectSeriesCount.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 用来取电视剧id下 剧集的code和剧集的集数
 */
function getSeriesList(relativePathPrefix,id,startindex,count,callback){
	var url = relativePathPrefix+"selectSeriesList.do?f_cc_id="+id+"&pageNo="+startindex+"&pageSize="+count;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取所有连续剧剧集以及剧集总数，是getSeriesCount和getSeriesList整合体，无分页
 */
function getSeriesInfo(relativePathPrefix,id,callback) {
	var url = relativePathPrefix+"selectSeriesInfo.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 用来取某集电视剧的播放code
 */
function getSeries(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"selectSeries.do?f_ssc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 获取某个分类下的内容总量
 * f_catalog_id 分类id
 * f_cp_cprid 图片类型0 内容_缩略图，1 内容_海报，2 内容_剧照，3 内容_图标，4 内容_标题图,5 内容_详情图,21 推荐_小图
 **/
function getMCatalogListCount(relativePathPrefix,f_catalog_id,f_cp_cprid,f_cc_definitionflag,callback){
	var url = relativePathPrefix+"multirate/catalog_count.do?f_cp_cprid="+f_cp_cprid+"&f_catalog_id="+f_catalog_id+"&f_cc_definitionflag="+f_cc_definitionflag;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 获取某个分类下的内容列表
 * f_catalog_id 分类id
 * startindex 起始标签pageNo
 * count 列表大小pageSize
 **/
function getMCatalogList(relativePathPrefix,f_catalog_id,startindex,count,f_cp_cprid,f_cc_definitionflag,callback){
	var url = relativePathPrefix+"multirate/catalog.do?f_cp_cprid="+f_cp_cprid+"&f_catalog_id="+f_catalog_id+"&pageSize="+count+"&pageNo="+startindex+"&f_cc_definitionflag="+f_cc_definitionflag;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 电影类的取内容影片
 * f_multirate_id 包id
 */
function getMov(relativePathPrefix,f_multirate_id,callback){
	var url = relativePathPrefix+"multirate/content_mov.do?seriesFlag=0&f_cc_multirateid="+f_multirate_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 电视剧类的取内容影片
 * f_multirate_id 包id
 */
function getVideo(relativePathPrefix,f_multirate_id,callback){
	var url = relativePathPrefix+"multirate/content_series.do?seriesFlag=0&f_cc_multirateid="+f_multirate_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 获取内容媒资信息
 * f_cc_id 内容id
 */
function getMContent(relativePathPrefix,f_cc_id,cpid,callback){
	var url = relativePathPrefix+"multirate/content.do?f_cp_cprid="+cpid+"&f_cc_id="+f_cc_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据剧头code拿到包id，epg最新上线、电影跳转详情页只能传剧头code
 */
function getMultirateID(relativePathPrefix,code,callback){
	var url = relativePathPrefix+"multirate/selectMultirateIDByCode.do?f_cc_code="+code;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据剧头code拿到内容id，epg最新上线、电视剧跳转详情页只能传剧头code
 */
function getContentID(relativePathPrefix,code,callback){
	var url = relativePathPrefix+"selectContentIDByCode.do?f_cc_code="+code;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据目录ID获取此目录对应产品清单
 */
function getProductListByCatalogId(relativePathPrefix,cataid,callback){
	var url = relativePathPrefix+"commons/catalog_product.do?f_catalog_id="+cataid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据产品ID获得对应绑定企业列表
 * @param f_sp_id
 */
function getOrgCodeByProductId(relativePathPrefix,f_sp_id,callback) {
	var url = relativePathPrefix+"commons/selectOrgCodeByProductId.do?f_sp_id="+f_sp_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据产品ID获得产品详细信息
 * @param f_sp_id
 */
function selectProduct(relativePathPrefix,f_sp_id,callback) {
	var url = relativePathPrefix+"commons/select_product.do?f_sp_id="+f_sp_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据产品包ID获得产品列表
 * @param f_sp_id
 */
function selectProducts(relativePathPrefix,f_sp_id,callback) {
	var url = relativePathPrefix+"commons/select_products.do?f_sp_id="+f_sp_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据内容ID反查产品包列表
 * @param f_sp_id
 */
function selectProductListByContentId(relativePathPrefix,f_cc_id,callback) {
	var url = relativePathPrefix+"commons/content_products.do?f_cc_id="+f_cc_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 用来取用户历史播放信息
 */
function getHistory(relativePathPrefix,uid,cataid,cid,type,callback){
	var url = relativePathPrefix+"commons/selectHistory.do?f_uvh_serverid="+uid+"&f_uvh_catalogid="+cataid+"&f_uvh_contentid="+cid+"&f_uvh_type="+type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 用来修改用户历史播放信息
 */
function updateHistory(relativePathPrefix,uid,cid,sid,type,caid,histime,mediaCode,orderType,hotelFlag,callback){
	var url = relativePathPrefix+"commons/updateHistory.do?f_uvh_serverid="+uid+"&f_uvh_contentid="+cid+"&f_uvh_seriesid="+sid+"&f_uvh_type="+type+"&f_uvh_catalogid="+caid+"&f_uvh_code="+mediaCode+"&f_uvh_playtime="+histime+"&f_uvh_orderType="+orderType+"&hotelFlag="+hotelFlag;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function getHistoryList(relativePathPrefix,serverid,spId,uvhType,definitionflag,cprid,pageNo,pageSize,callback){
	var url = relativePathPrefix+"commons/selectHistoryList.do?f_uvh_serverid="+serverid+"&f_sp_id="+spId+"&f_uvh_type="+uvhType+"&f_cc_definitionflag="+definitionflag+"&f_cp_cprid="+cprid+"&pageNo="+pageNo+"&pageSize="+pageSize;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
* 用来修改用户历史播放信息（记录播放时长）
*/
function updateHistoryTime(relativePathPrefix,uid,cid,sid,type,caid,histime,mediaCode,orderType,hotelFlag,focusIdwai,callback){
	var url = relativePathPrefix+"commons/updateHistoryTime.do?f_uvht_serverid="+uid+"&f_uvht_contentid="+cid+"&f_uvht_seriesid="+sid+"&f_uvht_type="+type+"&f_uvht_catalogid="+caid+"&f_uvht_code="+mediaCode+"&f_uvht_playtime="+histime+"&f_uvht_orderType="+orderType+"&hotelFlag="+hotelFlag+"&focusIdwai="+focusIdwai;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 用来查询用户历史播放信息（播放次数）
*/
function selectHistoryTime(relativePathPrefix,uid,bdate,edate,s,callback){
	if(!bdate) bdate="";
	if(!edate) edate="";
	var url = relativePathPrefix+"commons/selectHistoryTime.do?f_uvht_serverid="+uid+"&beginDate="+bdate+"&endDate="+edate+"&seconds="+s;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 产品鉴权--dpf -2018-02-28 根据电信要求需要增加点播鉴权ContentID参数，参数传递需要修改为json串，另此处的productCode是电信分配的那个-
 */
function getAuthenticatedByProductID(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"service/authenticationByProductID.do?serverid="+paramsJson.serverid+"&productCode="+paramsJson.productCode;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
function getAuthenticatedByProductIDS(relativePathPrefix,serverid,productCodes,callback){
	var url = relativePathPrefix+"service/authenticationByProductIDS.do?serverid="+serverid+"&productCodes="+productCodes;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 服务鉴权
 */
function getAuthenticatedByServiceID(relativePathPrefix,userID,serviceID,callback){
	var url = relativePathPrefix+"service/authenticationByServiceID.do?userID="+userID+"&serviceID="+serviceID;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 产品包鉴权
 * @param userID
 * @param f_sp_id
    所有传入参数修改为JSON串形式，修改时间为2018-02-28
 */
function getAuthenticatedResultByProductMultirateID(relativePathPrefix,paramsJson,callback) {
	var url = relativePathPrefix+"service/authenticationByProductMultirateID.do?serverid="+paramsJson.serverid+"&productMultirateID="+paramsJson.productMultirateID+"&contentId="+paramsJson.contentId;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 分类ID鉴权
 * @param userID
 * @param categoryId 分类ID
 */
function getAuthenticatedResultByCategoryID(relativePathPrefix,userID,categoryId,callback){
	var url = relativePathPrefix+"service/authenticationByCategoryID.do?userID="+userID+"&categoryId="+categoryId;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
//单天包
function getAuthenticatedResultByIndustryUserID(relativePathPrefix,userID,strategyID,serviceType,contentID,callback){
	var url = relativePathPrefix+"service/authenticationByIndustryUserID.do?userID="+userID+"&strategyID="+strategyID+"&serviceType="+serviceType+"&contentID="+contentID;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

//联合包鉴权
function getAuthenticationByunionProductId(relativePathPrefix,userID,ProductId,callback){
	var url = relativePathPrefix+"service/authenticationByunionProductId.do?userId="+userID+"&Product="+ProductId;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function insertUserBox(relativePathPrefix,f_ubox_type,f_ubox_contentid,f_ubox_viewindex,f_cc_type,callback){
	var url = relativePathPrefix+"user_center/insertUserBox.do?f_ubox_type="+f_ubox_type+"&f_ubox_contentid="+f_ubox_contentid+"&f_ubox_viewindex="+f_ubox_viewindex+"&f_cc_type="+f_cc_type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function deleteUserBoxById(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"user_center/deleteUserBoxById.do?f_ubox_id="+paramsJson.f_ubox_id+"&f_ubox_contentid="+paramsJson.f_ubox_contentid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function selectUserBoxByServerId(relativePathPrefix,offset,pageSize,f_cc_type,f_cc_id,f_cc_cprid,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerId.do?offset="+offset+"&pageSize="+pageSize+"&f_cc_type="+f_cc_type+"&f_ubox_contentid="+f_cc_id+"&f_cc_cprid="+f_cc_cprid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 查询歌单数量
 */
function selectUserBoxByServerIdCount(relativePathPrefix,f_cc_type,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerIdCount.do?f_cc_type="+f_cc_type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 通过f_ubx_type查询歌单list
*/
function selectUserBoxByServerIdAndFUbxType(relativePathPrefix,offset,pageSize,f_cc_type,f_ubox_type,f_cc_id,f_cc_cprid,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerId.do?offset="+offset+"&pageSize="+pageSize+"&f_cc_type="+f_cc_type+"&f_ubox_type="+f_ubox_type+"&f_ubox_contentid="+f_cc_id+"&f_cc_cprid="+f_cc_cprid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
* 通过f_ubx_type查询歌单数量
*/
function selectUserBoxByServerIdAndFUbxTypeCount(relativePathPrefix,f_ubox_type,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerIdCount.do?f_ubox_type="+f_ubox_type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 查询收藏歌曲数量---qql-2020-7-15
* f_cc_type,内容类型
* f_ubox_type,收藏类型，0，内容，1，包，2，分类（歌单）
* f_cc_director,作为QQ专区的标识，qq
*/
function selectUserBoxByServerIdCountV2(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerIdCount.do?f_cc_type="+paramsJson.f_cc_type
				+"&f_ubox_type="+paramsJson.f_ubox_type+"&f_cc_director="+paramsJson.f_cc_director+"&f_ubox_contentid="+paramsJson.f_ubox_contentid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 查询收藏歌曲列表---qql-2020-7-15
*/
function selectUserBoxByServerIdV2(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxByServerId.do?offset="+paramsJson.offset+"&pageSize="+paramsJson.pageSize+
		"&f_cc_type="+paramsJson.f_cc_type+"&f_ubox_contentid="+paramsJson.f_ubox_contentid+"&f_cc_cprid="+paramsJson.f_cc_cprid+
		"&f_ubox_type="+paramsJson.f_ubox_type+"&f_cc_director="+paramsJson.f_cc_director;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 查询收藏歌单数量---qql-2020-7-15
*/
function selectUserBoxCatalogCountByServerid(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxCatalogCountByServerid.do?f_ubox_type="+paramsJson.f_ubox_type;
    var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 查询收藏歌单列表---qql-2020-7-15
*/
function selectUserBoxCatalogInfoByServerid(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"user_center/selectUserBoxCatalogInfoByServerid.do?offset="+paramsJson.offset+"&pageSize="+paramsJson.pageSize+"&f_ubox_type="+paramsJson.f_ubox_type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 根据业务账号获取订购历史记录
 */
function getUserBill(relativePathPrefix,pageNo,pageSize,type,callback){
	var url = relativePathPrefix+"user_center/selectUserBillByServerId.do?f_ub_type="+type+"&pageSize="+pageSize+"&pageNo="+pageNo;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function getUserBillByServerIdCounts(relativePathPrefix,type,callback){
	var url = relativePathPrefix+"user_center/selectUserBillByServerIdCounts.do?f_ub_type="+type;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
function selectUserOrderVoteNumList(relativePathPrefix,productList,callback){
	var url = relativePathPrefix+"activity/selectUserOrderVoteNumList.do?productList="+productList;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 按演员和内容名称搜索内容
 
 推荐使用 selectGlobalContentListByv2
 */
function selectGlobalContentList(relativePathPrefix,f_cc_actorsSearchName,f_cc_searchname,startindex,count,callback){
	var url = relativePathPrefix+"selectGlobalContentList.do?offset="+startindex+"&pageSize="+count+"&f_cc_actorsSearchName="+f_cc_actorsSearchName+"&f_cc_searchname="+f_cc_searchname;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 推荐使用 selectGlobalContentListByv2
 */
function selectGlobalContentListByNew(relativePathPrefix,f_cc_actorsSearchName,f_cc_searchname,startindex,count,f_catalog_parentid,callback){
	var url = relativePathPrefix+"selectGlobalContentList.do?offset="+startindex+"&pageSize="+count+"&f_cc_actorsSearchName="+f_cc_actorsSearchName+"&f_cc_searchname="+f_cc_searchname+"&f_catalog_parentid="+f_catalog_parentid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 该方法可根据父分类为条件进行搜索。  也可以根据分类对应的产品id进行搜索。
 */
function selectGlobalContentListByv2(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"selectGlobalContentList.do?offset="+paramsJson.startindex
			+"&pageSize="+paramsJson.count+"&f_cc_actorsSearchName="+paramsJson.f_cc_actorsSearchName
			+"&f_cc_searchname="+paramsJson.f_cc_searchname+"&f_catalog_parentid="+paramsJson.f_catalog_parentid
			+"&f_sp_ids="+paramsJson.f_sp_ids;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 按关键字搜索内容
 */
function selectGlobalContentListByTags(relativePathPrefix,f_cc_tags,startindex,count,callback){
	var url = relativePathPrefix+"selectGlobalContentListByTags.do?offset="+startindex+"&pageSize="+count+"&f_cc_tags="+f_cc_tags;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 音乐，教育酒店栏目产品价格查询
 */
function getPriceHotel(relativePathPrefix,serverid,timestamp,secret,source,callback){
	var url = relativePathPrefix+"getPriceDate.do?serverid="+serverid+"&timestamp="+timestamp+"&secret="+secret+"&source="+source;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 频道素材列表  f_vc_customid：组织id,f_vc_status 默认5 代表正在投放
 */
function getChannelMaterialListByCustomid(relativePathPrefix,paramsJson,callback){
	var url = relativePathPrefix+"industry/virtual_channel/channel_list.do?f_vc_customid="+paramsJson.f_vc_customid+"&f_vc_status=5";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

 /*
 查询天气
 industry/WeatherForecast/selectWeatherForecastVo  paramJson参数定义为json对象，。
 */
function selectWeatherForecastVo(relativePathPrefix,paramJson,callback){
	//var url = relativePathPrefix+"industry/WeatherForecast/selectWeatherForecastVo.do?f_wf_date="+ paramJson.f_wf_date+"&f_wf_userarea="+paramJson.f_wf_userarea;
	var url = relativePathPrefix+"industry/WeatherForecast/selectWeatherForecastVo.do";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

//根据内容id查询点播量
function getOnDemandCount(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"commons/selectOnDemandCount.do?f_uvh_contentid="+paramJson.f_uvh_contentid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 获取分类下从startindex开始 一共取count条内容数据 图片为剧照
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function getCatalogContentListById(relativePathPrefix,paramJson,callback){
	if(!paramJson.f_cc_searchname){
		paramJson.f_cc_searchname="";
	}
	var url = relativePathPrefix+"catalog_list.do?f_catalog_id="+paramJson.id+"&pageNo="+paramJson.startindex+"&pageSize="+paramJson.count+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_is_public="+paramJson.ispublic+"&f_cc_searchname="+paramJson.f_cc_searchname+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取分类下总共有几条数据
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function getCatalogContentListCount(relativePathPrefix,paramJson,callback){
	if(!paramJson.f_cc_searchname){
		paramJson.f_cc_searchname="";
	}
	var url = relativePathPrefix+"catalog_count.do?f_catalog_id="+paramJson.id+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_is_public="+paramJson.ispublic+"&f_cc_searchname="+paramJson.f_cc_searchname+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
 * 获取多个分类下从startindex开始 一共取count条内容数据 图片为剧照
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function getCatalogContentListByIdIn(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"catalog_list_in.do?f_catalog_idd="+paramJson.id+"&pageNo="+paramJson.startindex+"&pageSize="+paramJson.count+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_is_public="+paramJson.ispublic+"&f_cc_searchname="+paramJson.f_cc_searchname+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 获取多个分类下总共有几条数据
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function getCatalogContentListCountIn(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"catalog_count_in.do?f_catalog_idd="+paramJson.id+"&f_cp_cprid="+paramJson.f_cp_cprid+"&f_is_public="+paramJson.ispublic+"&f_cc_searchname="+paramJson.f_cc_searchname+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据分类ID 获取分类详情
 */
function getCatalog(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"catalog_info.do?f_catalog_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据内容id 获取内容绑定分类
 */
function getCatalogListByContent(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"selectCatalogListByContent.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据父级catalogId得到父级目录下的一级子目录信息(注意只能拿到下一级，不可多级，多级需要多次查询)
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function catalog_catalogInfoListByparamJson(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"catalog_info_list_by_parent_catalogid.do?f_catalog_id="+paramJson.f_catalog_id+"&pageNo="+paramJson.pageNo+"&pageSize="+paramJson.pageSize+"&f_is_public="+paramJson.f_is_public;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据父级catalogId得到父级目录下的一级子目录总数
 * 可带是否公共分类参数ispublic，0代表不公开，1代表公开
 */
function catalog_catalogInfoListByparamJsonCount(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"catalog_info_list_by_parent_catalogid_count.do?f_catalog_id="+paramJson.f_catalog_id+"&f_is_public="+paramJson.f_is_public;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/**
 * 根据提供的渠道号查询用户相对应的已订购产品详情 server_channelCode=zengzhi&server_channelCode_pwd=pmiTj2HZ
 */
function authenticationBychannelCode(relativePathPrefix,userID,callback){
	var url = relativePathPrefix+"service/authenticationBychannelCode.do?server_channelCode=zengzhi&server_channelCode_pwd=pmiTj2HZ&serverid="+userID;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
	酒店查询天气
*
*/
function selectHotelWeatherForecastVo(relativePathPrefix,city,callback){
	//var url = relativePathPrefix+"industry/WeatherForecast/selectWeatherForecastVo.do?f_wf_date="+ paramJson.f_wf_date+"&f_wf_userarea="+paramJson.f_wf_userarea;
	var url = relativePathPrefix+"hotel/selectWeatherForecastVoByHotel.do?city="+city;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
查询天气
*
*/
function selectWeatherForecastCommonVo(relativePathPrefix,paramJson,callback){
	//var url = relativePathPrefix+"industry/WeatherForecast/selectWeatherForecastVo.do?f_wf_date="+ paramJson.f_wf_date+"&f_wf_userarea="+paramJson.f_wf_userarea;
	if(!paramJson.f_wfc_provinceid){
		paramJson.f_wfc_provinceid="";
	}
	if(!paramJson.org_address_code){
		paramJson.org_address_code="";
	}
	if(!paramJson.f_wfc_area_code){
		paramJson.f_wfc_area_code="";
	}
	if(!paramJson.f_wfc_current_date){
		paramJson.f_wfc_current_date="";
	}
	if(!paramJson.f_wfc_date){
		paramJson.f_wfc_date="";
	}
	if(!paramJson.orderBy){
		paramJson.orderBy="";
	}
	if(!paramJson.orderSort){
		paramJson.orderSort="";
	}
	if(!paramJson.limitNo){
		paramJson.limitNo="0";
	}
	if(!paramJson.disabledAreaid){
		paramJson.disabledAreaid="0";
	}
	var url = relativePathPrefix+"industry/WeatherForecastCommon/selectWeatherForecastCommonVo.do?f_wfc_source="+paramJson.f_wfc_source+"&f_wfc_type="+paramJson.f_wfc_type+"&f_wfc_date="+paramJson.f_wfc_date+"&f_wfc_current_date="+paramJson.f_wfc_current_date+"&orderBy="+paramJson.orderBy+"&limitNo="+paramJson.limitNo+"&orderSort="+paramJson.orderSort+"&f_wfc_provinceid="+paramJson.f_wfc_provinceid+"&disabledAreaid="+paramJson.disabledAreaid+"&org_address_code="+paramJson.org_address_code+"&f_wfc_area_code="+paramJson.f_wfc_area_code+"&area_type="+paramJson.area_type;
    var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	根据机顶盒账户查询保洁时间
*
*/
function selectContentCleanerById(relativePathPrefix,f_cc_searchname,callback) {
	var url = relativePathPrefix+"industry/Cleaner/selectCleanerTime.do?f_cc_searchname="+f_cc_searchname;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	取消保洁计划
*
*/
function deleteCleanerPlan(relativePathPrefix,id,callback){
	var url = relativePathPrefix+"industry/Cleaner/deleteCleanerPlan.do?f_cc_id="+id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	更换保洁时间
*
*/
function updateCleanerTime(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"industry/Cleaner/updateCleanerTime.do?f_cc_id="+paramJson.f_cc_id+"&f_po_id="+paramJson.f_po_id+"&f_cc_obligate2="+paramJson.updateTime;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	查询保洁次数
*
*/
function selectPmsCleanerResidue(relativePathPrefix,paramJson,callback) {
	var url = relativePathPrefix+"industry/Cleaner/selectPmsCleanerResidue.do?f_po_id="+paramJson.f_po_id+"&f_cc_id="+paramJson.f_cc_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/*
*	查询我的歌单相关信息
*
*/
function selectMySongSheetInfo(relativePathPrefix,f_mss_serverid,callback){
	var url = relativePathPrefix+"mySongSheet/selectMySongSheetInfo.do?f_mss_serverid="+f_mss_serverid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/*
*	插入/更新 我的歌单相关信息
*
*/
function insertMySongSheetInfo(relativePathPrefix,f_mss_serverid,f_mss_tags_list,f_mss_pic_id,f_mss_introduce_count,f_mss_introduce_flag,callback){
	var url = relativePathPrefix+"mySongSheet/insertMySongSheet.do?f_mss_serverid="+f_mss_serverid+"&f_mss_tags_list="+f_mss_tags_list+"&f_mss_pic_id="+f_mss_pic_id+"&f_mss_introduce_count="+f_mss_introduce_count+"&f_mss_introduce_flag="+f_mss_introduce_flag;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/*
*	电信审核播控平台,通过组织id查询内容列表
*
*/
function selectContentListByOrgId(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectContentListByOrgId.do?f_cco_orgId="+paramJson.f_cco_orgId+"&f_cc_obligate4="+paramJson.f_cc_obligate4+"&pageNo="+paramJson.pageNo+"&pageSize="+paramJson.pageSize;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,通过组织id查询内容总数
*
*/
function selectContentCountByOrgId(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectContentCountByOrgId.do?f_cco_orgId="+paramJson.f_cco_orgId;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,更新内容信息f_cc_obligate4 = 1
*
*/
function updateContent(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/updateContent.do?f_cc_id="+paramJson.f_cc_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,通过组织id查询内容列表,行业
*
*/
function selectContentListByOrgIdHY(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectContentListByOrgIdHY.do?f_cco_orgId="+paramJson.f_cco_orgId+"&f_cc_obligate4="+paramJson.f_cc_obligate4+"&pageNo="+paramJson.pageNo+"&pageSize="+paramJson.pageSize;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,通过组织id查询内容总数，行业
*
*/
function selectContentCountByOrgIdHY(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectContentCountByOrgIdHY.do?f_cco_orgId="+paramJson.f_cco_orgId;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}


/*
*	电信审核播控平台,自定义内容查询
*
*/
function selectCustomContentCount(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectCustomContentCount.do?f_crp_id="+paramJson.f_crp_id+"&pageNo="+paramJson.pageNo+"&pageSize="+paramJson.pageSize;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,自定义内容查询列表
*
*/
function selectCustomContentCountList(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectCustomContentCountList.do?f_crp_id="+paramJson.f_crp_id+"&pageNo="+paramJson.pageNo+"&pageSize="+paramJson.pageSize;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	电信审核播控平台,通过自定义id得到对应的自定义分类信息
*
*/
function selectReviewGroupById(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"broadcast/selectReviewGroupById.do?f_crp_id="+paramJson.f_crp_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	select_priceSensitiveUsersList
*
*/
function select_priceSensitiveUsersList(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"select_priceSensitiveUsersList.do";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	select_priceSensitiveUsersByServerid
*
*/
function select_priceSensitiveUsersByServerid(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"select_priceSensitiveUsersByServerid.do?f_psu_serverid="+paramJson.f_psu_serverid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}
/*
*	update_priceSensitiveUsersCount
*
*/
function update_priceSensitiveUsersCount(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"update_priceSensitiveUsersCount.do?f_psu_serverid="+paramJson.f_psu_serverid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/*
*查询万年历
 */
function getLunarCalendar(relativePathPrefix,paramJson,callback){
    var url = relativePathPrefix+"calendar/getLunarCalendar.do?year="+paramJson.year+"&month="+paramJson.month+"&day="+paramJson.day;
    var ajax = new AJAX_OBJ(url, callback);
    ajax.requestData();
}

/**
 * 查询航班信息
 * @param relativePathPrefix
 * @param paramJson
 * @param callback
 */
function selectFlightInformation(relativePathPrefix,paramJson,callback){
    var url = relativePathPrefix+"flight/selectFlightInformationList.do?startCity="+ paramJson.startCity+"&lastCity="+paramJson.lastCity+"&AirlineCode="+paramJson.AirlineCode;
    var ajax = new AJAX_OBJ(url, callback);
    ajax.requestData();
}

/**
 * 记录用户图片播放信息
 */
function picPlayTime(relativePathPrefix,serverid,f_cc_id,playtime,callback){
	var url = relativePathPrefix+"commons/picPlayTime.do?serverid="+serverid+"&f_cc_id="+f_cc_id+"&playtime="+playtime;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/**
* 记录广告播放日志
* wma:机顶盒账号 et:显示时长 adet:事件类型(1：曝光 2：点击 3: 关闭 4：暂停 5 : 播放)  adsid:广告系统标识 admid:广告活动标识 adsp:广告位标识
*/
function adDetails(relativePathPrefix,serverid,f_ca_id,playtime,adet,adsid,admid,adsp,f_cas_id,playduration,areaCode,resolution,f_ca_source,callback){
var url = relativePathPrefix+"commons/adDetails.do?wma="+serverid+"&et="+playtime+"&adet="+adet+"&adsid="+adsid+"&admid="+admid+"&adsp="+adsp+"&f_cas_id="+f_cas_id+"&f_ca_id="+f_ca_id+"&playduration="+playduration+"&areaCode="+areaCode+"&resolution="+resolution+"&f_ca_source="+f_ca_source;
var ajax = new AJAX_OBJ(url, callback);
ajax.requestData();
}
/**
 * 根据特定组织id获取分类下数据，也会查出f_po_id为0或1的
 * f_po_id可以是以逗号分隔的字符串
 */
function getCatalogContentListByOrg(relativePathPrefix,id,startindex,count,f_cp_cprid,f_po_id,callback){
	var url = relativePathPrefix+"catalog_list_org.do?f_catalog_id="+id+"&pageNo="+startindex+"&pageSize="+count+"&f_cp_cprid="+f_cp_cprid+"&f_po_id="+f_po_id+"&f_cc_actors=";
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}


/**
* 健身计划相关api
*/
function insertUserPlan(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/insert_user_plan.do?f_up_serverid="+paramJson.f_up_serverid+"&f_up_plan_id="+paramJson.f_up_plan_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function insertUserCompleteCourse(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/insert_user_complete_course.do?f_ucc_serverid="+paramJson.f_ucc_serverid+"&f_ucc_contentid="+paramJson.f_ucc_contentid
				+"&f_ucc_seriesid="+paramJson.f_ucc_seriesid+"&f_ucc_plan_id="+paramJson.f_ucc_plan_id+"&f_ucc_indexview="+paramJson.f_ucc_indexview+"&f_up_id="+paramJson.f_up_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function updateUserPlan(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/update_user_plan.do?f_up_id="+paramJson.f_up_id+"&f_up_status="+paramJson.f_up_status;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function selectPlanList(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/select_plan_list.do?serverid="+paramJson.serverid;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function selectPlanDetial(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/select_plan_detial.do?f_cc_id="+paramJson.f_cc_id+"&f_up_serverid="+paramJson.f_up_serverid+"&f_cc_cprid="+paramJson.f_cc_cprid+"&f_up_id="+paramJson.f_up_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function selectCmContentVoByPlanCondition(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix +"plan/select_content_by_plan_condition.do?f_cc_duration="+paramJson.f_cc_duration+"&f_cc_mediacode="+paramJson.f_cc_mediacode
					+"&f_cc_obligate1="+paramJson.f_cc_obligate1+"&f_cc_obligate2="+paramJson.f_cc_obligate2;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function getCalculationPlanResult(relativePathPrefix,paramJson,callback){
    var url = relativePathPrefix +"plan/calculation_plan_result.do?f_ucc_contentid="+paramJson.f_ucc_contentid+"&f_ucc_serverid="+paramJson.f_ucc_serverid+"&f_ucc_indexview="+f_ucc_indexview
            +"&f_ucc_plan_id="+paramJson.f_ucc_plan_id;
    var ajax = new AJAX_OBJ(url, callback);
    ajax.requestData();
}

function getCatalogContentListByOrgShowRegion(relativePathPrefix,id,startindex,count,f_cp_cprid,callback,f_po_id){
	if(!f_po_id||f_po_id=="null"){
		f_po_id = 0;
	}
	var url = relativePathPrefix+"catalog_list_by_org_show_region.do?f_catalog_id="+id+"&pageNo="+startindex+"&pageSize="+count+"&f_cp_cprid="+f_cp_cprid+"&f_cc_actors="+"&f_po_id="+f_po_id;
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

/*
* 当贝数据接口
* */
function getDangbToken(relativePathPrefix,urlType,paramJson,callback){
	var url = relativePathPrefix +"db/"+urlType+".do";
	url += "?"+params(paramJson);
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function getIntegral(relativePathPrefix,paramJson,callback){
	var url = relativePathPrefix+"integral/getIntegral.do";
		url += "?"+params(paramJson);
	var ajax = new AJAX_OBJ(url, callback);
	ajax.requestData();
}

function params(map){
	var param = [];
	for(var key in map){
		param.push(key+"="+map[key]);
	}
	return param.join("&");
}


</script>
